<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<html>
<head><title>DRA Detail Page</title></head>

<body>

<rad:useBean id="adpeAccountViewHelper"/>
<rad:useBean id="draViewHelper"/>

<div id="portal-left-bar">
    <jsp:include page="../../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <portal:box title="View ADPE Accounts" style="width: 800px">
        <portal:subSection title="DRA">
            <html:form method="post" action="draAction.do?method=selectDra">
                <html:select property="draId">
                    <html:optionsCollection name="draViewHelper"
                                            property="all"
                                            filter="false"
                                            label="name"
                                            value="id"/>
                </html:select>
            </html:form>
        </portal:subSection>
        <portal:subSection title="Accounts">
            <display:table name="adpeAccountViewHelper.draAccounts" style="width:100%"
                           decorator="mil.af.amc.adpetracker.web.decorators.AdpeAccountDecorator">
                <display:column property="accountName" title="Account Name"/>
                <display:column property="accountItemCount" title="Total Items"/>
                <display:column property="draDetailActions" title="Actions"/>
            </display:table>
            <a href="adpeAccountAction.do?method=viewCreateAdpeAccount">Add Account</a>
        </portal:subSection>

    </portal:box>
</div>
</body>
</html>